package org.geektimes.configuration.microprofile.config.sources;

import java.util.Comparator;

import org.eclipse.microprofile.config.spi.ConfigSource;

public class ConfigSourceComparator implements Comparator<ConfigSource>{

	public static ConfigSourceComparator INSTANCE = new ConfigSourceComparator();
	
	@Override
	public int compare(ConfigSource o1, ConfigSource o2) {
		return Integer.compare(o2.getOrdinal(), o1.getOrdinal());
	}

}
